//
//  MRDestinationCollectionReusableView.m
//  Travel_World
//
//  Created by dllo on 15/10/13.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "MRDestinationCollectionReusableView.h"

@implementation MRDestinationCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.map = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"map"]];
        [self addSubview:self.map];
        
        self.hotDestination = [[UILabel alloc] init];
        [self addSubview:self.hotDestination];
        
//        self.otherDestination = [[UILabel alloc] init];
//        [self addSubview:self.otherDestination];
//        
//        self.orderDestination = [[UILabel alloc] init];
//        self.orderDestination.font = [UIFont systemFontOfSize:13];
//        self.orderDestination.textColor = [UIColor grayColor];
//        self.orderDestination.text = @"拼音首字母排序";
//        [self addSubview:self.orderDestination];
        
    }
    
    return self;
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.map.frame = CGRectMake(0, 0, 375 * WID, 230 * HEI);
    
    self.hotDestination.frame = CGRectMake(20 * WID, 240 * HEI, 300, 30 *HEI);
    
//    self.otherDestination.frame = CGRectMake(20 * WID, HEI * 2.15*667 + 1, 250, 30 * HEI);
//    
//    self.orderDestination.frame = CGRectMake(250 * WID, HEI * 2.15*667 + 1, 100, 30 * HEI);
}

@end
